Dsl

class Dsl

Types

Link copied to clipboard
object Companion
Link copied to clipboard
class FeaturesProxy : DslProxy

An uninstantiable, behaviorless type to represent the field in generics.

Link copied to clipboard
class KeysProxy : DslProxy

An uninstantiable, behaviorless type to represent the field in generics.

Link copied to clipboard
class ValuesProxy : DslProxy

An uninstantiable, behaviorless type to represent the field in generics.

Properties

Link copied to clipboard
@get:JvmName(name = "getExtent")
@set:JvmName(name = "setExtent")
var extent: Int
Although this is an "optional" field it is required by the specification.
See https://github.com/mapbox/vector-tile-spec/issues/47
Link copied to clipboard

repeated .vector_tile.Tile.Feature features = 2;

Link copied to clipboard

repeated string keys = 3;

Link copied to clipboard
@get:JvmName(name = "getName")
@set:JvmName(name = "setName")
var name: String

required string name = 1;

Link copied to clipboard

repeated .vector_tile.Tile.Value values = 4;

Link copied to clipboard
@get:JvmName(name = "getVersion")
@set:JvmName(name = "setVersion")
var version: Int
Any compliant implementation must first read the version
number encoded in this message and choose the correct
implementation for this version number before proceeding to
decode other parts of this message.

Functions

Link copied to clipboard
@JvmName(name = "addKeys")
fun DslList<String, TileKt.LayerKt.Dsl.KeysProxy>.add(value: String)

repeated string keys = 3;

repeated .vector_tile.Tile.Feature features = 2;

repeated .vector_tile.Tile.Value values = 4;

fun <E : Any> ExtensionList<E, VectorTile.Tile.Layer>.add(value: E)
Link copied to clipboard
@JvmName(name = "addAllKeys")
fun DslList<String, TileKt.LayerKt.Dsl.KeysProxy>.addAll(values: Iterable<String>)

repeated string keys = 3;

repeated .vector_tile.Tile.Feature features = 2;

repeated .vector_tile.Tile.Value values = 4;

fun <E : Any> ExtensionList<E, VectorTile.Tile.Layer>.addAll(values: Iterable<E>)
Link copied to clipboard
@JvmName(name = "setKeys")
fun DslList<String, TileKt.LayerKt.Dsl.KeysProxy>.clear()

repeated string keys = 3;

repeated .vector_tile.Tile.Feature features = 2;

repeated .vector_tile.Tile.Value values = 4;

inline fun ExtensionList<*, VectorTile.Tile.Layer>.clear()
fun clear(extension: ExtensionLite<VectorTile.Tile.Layer, *>)
Link copied to clipboard

optional uint32 extent = 5 [default = 4096];

Link copied to clipboard
fun clearName()

required string name = 1;

Link copied to clipboard

required uint32 version = 15 [default = 1];

Link copied to clipboard
operator fun contains(extension: ExtensionLite<VectorTile.Tile.Layer, *>): Boolean
Link copied to clipboard
operator fun <T : Any> get(extension: ExtensionLite<VectorTile.Tile.Layer, T>): T
@JvmName(name = "-getRepeatedExtension")
operator fun <E : Any> get(extension: ExtensionLite<VectorTile.Tile.Layer, List<E>>): ExtensionList<E, VectorTile.Tile.Layer>
Link copied to clipboard

optional uint32 extent = 5 [default = 4096];

Link copied to clipboard

required string name = 1;

Link copied to clipboard

required uint32 version = 15 [default = 1];

Link copied to clipboard
@JvmName(name = "plusAssignKeys")
inline operator fun DslList<String, TileKt.LayerKt.Dsl.KeysProxy>.plusAssign(value: String)
@JvmName(name = "plusAssignAllKeys")
inline operator fun DslList<String, TileKt.LayerKt.Dsl.KeysProxy>.plusAssign(values: Iterable<String>)

repeated string keys = 3;

@JvmName(name = "plusAssignAllFeatures")
inline operator fun DslList<VectorTile.Tile.Feature, TileKt.LayerKt.Dsl.FeaturesProxy>.plusAssign(values: Iterable<VectorTile.Tile.Feature>)
@JvmName(name = "plusAssignFeatures")
inline operator fun DslList<VectorTile.Tile.Feature, TileKt.LayerKt.Dsl.FeaturesProxy>.plusAssign(value: VectorTile.Tile.Feature)

repeated .vector_tile.Tile.Feature features = 2;

@JvmName(name = "plusAssignAllValues")
inline operator fun DslList<VectorTile.Tile.Value, TileKt.LayerKt.Dsl.ValuesProxy>.plusAssign(values: Iterable<VectorTile.Tile.Value>)
@JvmName(name = "plusAssignValues")
inline operator fun DslList<VectorTile.Tile.Value, TileKt.LayerKt.Dsl.ValuesProxy>.plusAssign(value: VectorTile.Tile.Value)

repeated .vector_tile.Tile.Value values = 4;

inline operator fun <E : Any> ExtensionList<E, VectorTile.Tile.Layer>.plusAssign(value: E)
inline operator fun <E : Any> ExtensionList<E, VectorTile.Tile.Layer>.plusAssign(values: Iterable<E>)
Link copied to clipboard
inline operator fun <T : MessageLite> set(extension: ExtensionLite<VectorTile.Tile.Layer, T>, value: T)
inline operator fun <T : Comparable<T>> set(extension: ExtensionLite<VectorTile.Tile.Layer, T>, value: T)
inline operator fun set(extension: ExtensionLite<VectorTile.Tile.Layer, ByteString>, value: ByteString)
operator fun <E : Any> ExtensionList<E, VectorTile.Tile.Layer>.set(index: Int, value: E)

@JvmName(name = "setKeys")
operator fun DslList<String, TileKt.LayerKt.Dsl.KeysProxy>.set(index: Int, value: String)

repeated string keys = 3;

@JvmName(name = "setFeatures")
operator fun DslList<VectorTile.Tile.Feature, TileKt.LayerKt.Dsl.FeaturesProxy>.set(index: Int, value: VectorTile.Tile.Feature)

repeated .vector_tile.Tile.Feature features = 2;

@JvmName(name = "setValues")
operator fun DslList<VectorTile.Tile.Value, TileKt.LayerKt.Dsl.ValuesProxy>.set(index: Int, value: VectorTile.Tile.Value)

repeated .vector_tile.Tile.Value values = 4;

Link copied to clipboard
fun <T : Any> setExtension(extension: ExtensionLite<VectorTile.Tile.Layer, T>, value: T)